From: Jasper St. Pierre Date: Wed, 19 Sep 2012 03:40:53 +0000 (-0300) Subject: messageTray: Don't destroy the notification when clicking on the close button X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5542 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=92a01c67ba17858b048e335c75b9b328695a41b4;p=gnome-shell.git messageTray: Don't destroy the notification when clicking on the close button Clicking on the close button should simply hide the notification. https://bugzilla.gnome.org/show_bug.cgi?id=682237 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 9c9221f35..93ec828f4 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1592,11 +1592,7 @@ const MessageTray = new Lang.Class({ _onCloseClicked: function() { if (this._notificationState == State.SHOWN) { this._notificationClosed = true; - this._notification.emit('done-displaying'); - - if (!this._notification.resident) - this._notification.destroy(); - + this._updateState(); this._notificationClosed = false; } },